from testcases import testcase1, testcase02

from testcases.basic.test_user_register import TestUserRegister
from testcases.basic import test_user_register
from testcases.basic.test_user_login import TestUserLogin
from testcases.basic.test_admin_login import TestAdminLogin
from testcases.basic.test_category import Test_Category
from testcases.basic.test_article import TestArticle
from lib.ShowapiRequest import ShowapiRequest
from selenium import webdriver


if __name__ == '__main__':
    # case01 = TestUserRegister()
    # case01.test_register_code_error()
    # case01.test_register_sucess()

    # case02 = TestUserLogin()
    # case02.test_login_sucess()
    # case02.test_login_error()

    # case03 = TestAdminLogin()
    # case03.test_admin_login_error()
    # case03.test_admin_login_sucess()

    # login = TestAdminLogin()
    # login.test_admin_login_sucess()
    # case04 = Test_Category(login)
    # # case04.test_category_name_error()
    # case04.test_category_sucess()

    login = TestAdminLogin()
    login.test_admin_login_sucess()
    case05 = TestArticle(login)
    # case05.test_article_add_ok()
    # case05.test_article_delete()
    # case05.test_delete_one_article()
    case05.detele_all_article()